package com.zz.common.cassandra

import io.getquill.{CassandraAsyncContext, SnakeCase}

object CassandraClient {

  def ctx(config: String): CassandraAsyncContext[SnakeCase] = new CassandraAsyncContext(SnakeCase, config)

  def ctxW: CassandraAsyncContext[SnakeCase] = ctx("cassandra.main.write")

  def ctxR: CassandraAsyncContext[SnakeCase] = ctx("cassandra.main.read")

}